﻿using System;
namespace CRMSystemV2.Common
{
    public static class LogHelper
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger("WebLogger");
        public static void SetConfig()
        {
            log4net.Config.XmlConfigurator.Configure();
        }
        public static void WriteLog(this Exception ex)
        {
            log.Error(ex);
        }
        public static void WriteLog(string logMessage)
        {
            log.Info(logMessage);
        }
    }    
}
